package nc.ui.common;


import java.util.*;
import nc.vo.pub.CircularlyAccessibleValueObject;
import nc.vo.pub.ValidationException;

public class HashMapVO extends CircularlyAccessibleValueObject {

	public HashMapVO() {
		m = new HashMap();
	}

	public String[] getAttributeNames() {
		return (String[]) (String[]) m.keySet().toArray();
	}

	public Object getAttributeValue(String attributeName) {
		return m.get(attributeName);
	}

	public void setAttributeValue(String name, Object value) {
		m.put(name, value);
	}

	public String getEntityName() {
		return null;
	}

	public void validate() throws ValidationException {
	}

	public String toString() {
		return m.toString();
	}

	public Object get(Object key) {
		return m.get(key);
	}

	public Object put(Object key, Object value) {
		return m.put(key, value);
	}

	private Map m;
}
